#include<stdiol.h>
int main()
{
int x,y,a;
scanf("%x,%y,",&x,&y);
a=(x+y)/2;
printf("The average is %d:\n",a);
return 0;
}